namespace dPet.Infrastructure.EntityFramework.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class UpdateModelConfig : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.ServiceSKUProperty", "Category_Id", c => c.String(maxLength: 128));
            CreateIndex("dbo.ServiceSKUProperty", "Category_Id");
            AddForeignKey("dbo.ServiceSKUProperty", "Category_Id", "dbo.ServiceCategory", "Id");
            DropColumn("dbo.ServiceSKUProperty", "ServiceCategoryId");
        }
        
        public override void Down()
        {
            AddColumn("dbo.ServiceSKUProperty", "ServiceCategoryId", c => c.String(nullable: false, maxLength: 32));
            DropForeignKey("dbo.ServiceSKUProperty", "Category_Id", "dbo.ServiceCategory");
            DropIndex("dbo.ServiceSKUProperty", new[] { "Category_Id" });
            DropColumn("dbo.ServiceSKUProperty", "Category_Id");
        }
    }
}
